// API统一导出文件
import { API_CONFIG, HTTP_STATUS, BUSINESS_CODE } from './config.js';
import request, { axios } from './request-axios.js';
import videoStreamAPI from './modules/videoStream.js';
import taskAPI from './modules/task.js';
import dataAPI from './modules/data.js';
import loginAPI from './modules/login.js';
import collectionAPI from './modules/collection.js';
import telemetryAPI from './modules/telemetry.js';
import videoDataAPI from './modules/videoData.js';
import fileAPI from './modules/file.js';
import systemAPI from './modules/system.js';
import videoSaveAPI from './modules/videoSave.js';
import adminAPI from './modules/admin.js';
import taskTypeAPI from "./modules/taskType";
import telemetryDataAPI from "./modules/telemetryData";
import telemetryDataListAPI from "./modules/telemetryDataList";

import udpService from './modules/udpService';

// 导出所有API模块
export {
  API_CONFIG,
  HTTP_STATUS,
  BUSINESS_CODE,
  request,
  axios,
  videoStreamAPI,
  taskAPI,
  dataAPI,
  collectionAPI,
  telemetryAPI,
  videoDataAPI,
  fileAPI,
  systemAPI,
  videoSaveAPI,
  loginAPI,
  adminAPI,
  taskTypeAPI,
  telemetryDataAPI,
  telemetryDataListAPI
};

// 默认导出
export default {
  config: API_CONFIG,
  request,
  axios,
  videoStream: videoStreamAPI,
  task: taskAPI,
  data: dataAPI,
  collection: collectionAPI,
  telemetry: telemetryAPI,
  videoData: videoDataAPI,
  file: fileAPI,
  system: systemAPI,
  videoSave: videoSaveAPI,
  login:loginAPI,
  telemetryData:telemetryDataAPI,
  telemetryDataList:telemetryDataListAPI
};
